Skip to content

Replace fgrep with grep -F to avoid a warning#207

Merged
marmarek merged 1 commit intoQubesOS:mainfrom
mattmccutchen:remove-fgrep
Feb 6, 2026
Merged

Replace fgrep with grep -F to avoid a warning#207
marmarek merged 1 commit intoQubesOS:mainfrom
mattmccutchen:remove-fgrep

Conversation

@mattmccutchen
Copy link
Contributor

Today, I updated the dom0 kernel of my Qubes 4.3 system and saw a bunch of "warning: fgrep is obsolescent; using grep -F" messages. This change (if backported) should stop those messages, FWIW. Untested but hopefully obviously correct.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.63%. Comparing base (d7df71c) to head (89e39bd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #207   +/-   ##
=======================================
  Coverage   72.63%   72.63%           
=======================================
  Files          10       10           
  Lines        1162     1162           
=======================================
  Hits          844      844           
  Misses        318      318           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@marmarek marmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself is okay, but it seems there is still fgrep call somewhere else - the warning is shown during grub2-mkconfig call.

@marmarek marmarek merged commit 0ba84e2 into QubesOS:main Feb 6, 2026
2 of 3 checks passed
@mattmccutchen
Copy link
Contributor Author

I think you are right and the fgrep call I removed is not the one that was causing the warnings on my system. That's what I get for not testing the change. Oh well; thanks for your patience. I think QubesOS/qubes-issues#10536 has some information about the real cause of the warnings.

@mattmccutchen mattmccutchen deleted the remove-fgrep branch February 6, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants